﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Skynet.BusinessEntities
{
    public class YesNoQuestion : TextQuestion
    {
        public BoolAlternative YesAlternative
        {
            get { return this.Alternatives.ElementAt(0) as BoolAlternative; }
            set { this.Alternatives.Find(this.Alternatives.ElementAt(0)).Value = value; }

        }
        public BoolAlternative NoAlternative
        {
            get { return this.Alternatives.ElementAt(1) as BoolAlternative; }
            set { this.Alternatives.Find(this.Alternatives.ElementAt(1)).Value = value; }
        }
        public YesNoQuestion()
        {
            var ya = new BoolAlternative();
            var na = new BoolAlternative();
            this.Alternatives.AddFirst(ya);
            this.Alternatives.AddFirst(na);
        }
    }
}
